class All_number:
    """整数相加"""
    def __init__(self, number_1, number_2):
        self.number_1 = number_1
        self.number_2 = number_2

    def add_number(self):
        self.number_1 = input("请输入第一个整数数：")
        self.number_2 = input("请输入第二个整数数：")
        all_number = int(self.number_1) + int(self.number_2)
        print(f"和为{all_number}")

np = All_number(0, 0)
np.add_number()

